package com.loongtech.bi.manager.game;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Service;

import com.loongtech.bi.entity.game.EntityActiveUserSchool;
import com.loongtech.core.jpa.manager.ManagerQueryCacheBase;
import com.loongtech.core.util.Time;

/**
 * 活跃用户职业
 * 
 */
@Service
public class ActiveUserSchoolManager extends ManagerQueryCacheBase<EntityActiveUserSchool> {
	private static final long serialVersionUID = 1L;

	public List<EntityActiveUserSchool> getAllActiveUserSchool(Date dateStart, Date dateEnd) {
		return findByQuery("from EntityActiveUserSchool where startday>=:dayStart and endday<=:dayEnd and "
				+ "platformid = '0' and channelid = '0' and serverid = '0' ", "dayStart", Time.getDateStr(dateStart), "dayEnd", Time.getDateStr(dateEnd));
	}
}
